class Student extends Author {
    Parent parent
    StudentInfo studentInfo;
    static constraints = {
        classesId(nullable:false)
        parent(nullable:true)
        schoolId(nullable:false)
        hostId(nullable:false)
        studentInfo(nullable:true)
    }

    static mapping = {
       table 'student'
    }
    String toString() {
        "${name}"
    }
}
